package com.scalar.chiptrack.commons.bean;

import java.sql.Timestamp;

/**
 * User: Ganesh
  * Date: Apr 29, 2008
  * Time: 11:25:58 AM
 */
public interface IRowResultBean {
     /**
     * Get the value of the given search column
     * @return String
     */
    public String getValue(String columnName)throws Exception;


    /**
     * Get the value of an id column. This will currently return a string representing the id in decimal.
     * We can later add a hexadecimal API.
     * @return String
     */
    public String getId(String columnName)throws Exception;

    /**
     * Gets the value as a timestamp. This will be useful in case we want to format the timestamp
     * according to a format key, for a particular locale.
     * Usage <bean:write name="beanName" property="<%=timestampValue[columnName]%>" />
     * @return Timestamp
     */
    public Timestamp getTimestampValue(String columnName)throws Exception;


    /**
     * Gets the value as a Double. This will be usefule in case we want to fromat the timestamp
     * according to a format key, for a particular locale.
     * @return Double
     */
    public double getDoubleValue(String columnName)throws Exception;
}
